package com.horse.cloud.pay;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/**
 * @create : Created by intelliJ IDEA 17.2
 * @author : bing.Pan
 * @e-mail : 15923508369@163.com
 * @gmdate : 01 30 2018 11:36
 * @sidesc :
 */

@SpringBootApplication
@EnableCircuitBreaker
@EnableDiscoveryClient
@ServletComponentScan(value = "com.horse.cloud")
@ComponentScan({"com.horse.cloud"})
public class PayApplication {


    public static void main(String[] args){
        new SpringApplicationBuilder(PayApplication.class).web(WebApplicationType.SERVLET).run(args);
    }
}
